package com.erp.stock.dao;

import com.erp.stock.entity.CooperativesRawMaterialInventory;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CooperativesRawMaterialInventoryDao extends JpaRepository<CooperativesRawMaterialInventory,Long> {
    CooperativesRawMaterialInventory findFirstByCooperativesName(String name);

    CooperativesRawMaterialInventory findFirstByCooperativesNameAndRawMaterialIdAndOrderId(String cooperatives,Long rawMaterialId,Long orderId);

    List<CooperativesRawMaterialInventory> findAllByCooperativesNameLike(String name, Pageable pageable);
}
